package com.deep.bilibili.vo;

import com.deep.bilibili.entity.Menu;

import java.util.ArrayList;
import java.util.List;

public class TreeMenuAllowAccess {

    private static final long serialVersionUID = 1L;

    /**
     * 菜单
     */
    private Menu menu;
    /**
     * 是否允许访问
     */
    private boolean allowAccess = false;
    /**
     * 子菜单
     */
    private List<TreeMenuAllowAccess> children = new ArrayList<TreeMenuAllowAccess>();

    public static long getSerialVersionUID() {
        return serialVersionUID;
    }

    public Menu getMenu() {
        return menu;
    }

    public void setMenu(Menu menu) {
        this.menu = menu;
    }

    public boolean isAllowAccess() {
        return allowAccess;
    }

    public void setAllowAccess(boolean allowAccess) {
        this.allowAccess = allowAccess;
    }

    public List<TreeMenuAllowAccess> getChildren() {
        return children;
    }

    public void setChildren(List<TreeMenuAllowAccess> children) {
        this.children = children;
    }
}
